package cn.edu.scau.cmi.zhangjunming.hibernate.domain;

import java.io.Serializable;
import java.util.LinkedHashSet;
import java.util.Set;

public class Teacher implements Serializable{

	private Integer id;
	
    private String name;
	
	private Set<Student> stulist;
	//Set<Student> graduated;
	
	public Set<Student> getStulist() {
		return stulist;
	}




	public void setStulist(Set<Student> stulist) {
		this.stulist = stulist;
	}




	public Integer getId() {
		return id;
	}




	public void setId(Integer id) {
		this.id = id;
	}




	public String getName() {
		return name;
	}




	public void setName(String name) {
		this.name = name;
	}




	



	
	
	
	
	
	public void show() {
		System.out.println("id: "+id+" name: "+name);
	}
	/*
	public void setGraduated(Set<Student> stulist_1) {
		graduated = stulist_1;
	}
	
	public Set<Student> getGraduated(){
		if(graduated==null) {
			graduated = new LinkedHashSet<Student>();
		}
		return graduated;
	}*/

}
